#ifndef SAVEPOINTXML_H
#define SAVEPOINTXML_H

#include <QObject>
#include <QStringList>
#include "BaseXml.h"
#include "DataType/ZigbeeStruct.h"
#include "DataType/Zigbee3Struct.h"
#include "DataType/SavePointStruct.h"
#include <QMap>
class SavePointXml : public BaseXml<SavePointXml>
{
public:

    friend class BaseXml<SavePointXml>;

    bool parser();
    bool modify(SavePointStruct savePointStruct);
    bool clear();

    void joinMap(quint16 addr,SavePointStruct PointStruct);
    void cutMap(quint16 addr);
    void appendList(quint16 addr);
    bool findData(quint16 addr);
    QMap<quint16,SavePointStruct> getMap();
    QList<quint16>getList();
    void setSynchroTime(QString time);
    QString getSynchroTime();
    void SavePointData(quint16 addr,quint16 value);
    bool TurnStata();
    void saveTurnStata(bool stata);
    bool AutomaticContrast(quint16 addr,quint16 value);
    quint16 GetSavePointValue(quint16 addr);
    quint16 getsavetime();
    void clernsavetime();
    void timeup();
    /**********************/
    void JoinSystemList(quint16 addr, quint16 value, QString stata);
    QList<SavePointStruct>getSystemList();
    void clearnSystemList();
    /**********************/
private:
    SavePointXml();
    QMap<quint16,SavePointStruct> m_SaveMap;
    QList<quint16> m_SaveList;
    QString m_SynchroTime;
    bool m_TurnStata;
    quint16 m_saveTime;
/***********************TESTSaveSystemData*****************************/
    QList<SavePointStruct>m_systemList;
/**********************************************************************/

};
#endif // SAVEPOINTLIST_H
